package com.ruoyi.project.system.service.impl;

import com.ruoyi.project.system.domain.SysAddress;
import com.ruoyi.project.system.mapper.SysAddressMapper;
import com.ruoyi.project.system.service.ISysAddrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysAddrServiceImpl implements ISysAddrService{

    @Autowired
    private SysAddressMapper addressMapper;

    @Override
    public List<SysAddress> selectAddrList(SysAddress sysAddress) {
        return addressMapper.selectAddrList(sysAddress);
    }

    @Override
    public SysAddress selectAddrById(Long addrId) {
        return addressMapper.selectAddrById(addrId);
    }

    @Override
    public int deleteAddrById(Long addrId) {
        return addressMapper.deleteAddrById(addrId);
    }

    @Override
    public int insertAddr(SysAddress sysAddress) {
        return addressMapper.insertAddr(sysAddress);
    }

    @Override
    public int updateAddr(SysAddress sysAddress) {
        return addressMapper.updateAddr(sysAddress);
    }
}
